@securitySchedule
Feature: Security schedule and timesheet Management
File name: securityScheduleAndTimehseet.feature
Relative path: features/securityScheduleAndTimehseet.feature
@securitySchedule
Scenario: Create security schedule, Create timesheet, verify functionalities and validations
Given
Security management user logged into the application
When
User navigates to security schedule page
When
User selects date, shift and clicks GO button
And
Select staffing from Staffing for Operations list and fill the steady name, radio and vehicle
And
Enter notes, sergeant name and click on save
Then
User should see success message for security schedule
Then
click on view different schedule button
Then
Select 2nd shift and click on go button
And
Select staffing from Staffing for Operations list and fill the steady name, radio and vehicle
And
Enter notes, sergeant name and click on save
Then
click on view different schedule button
Then
Select 3RD shift and click on go button
And
Select staffing from Staffing for Operations list and fill the steady name, radio and vehicle
And
Enter notes, sergeant name and click on save
Then
copy the rolling code from the schedule
Then
user click on logout button
Then
Security sergeant user logged into the application
Then
Open the timesheet menu
Then
Verify the validations for ST and OT hr.
locator.textContent: Error: strict mode violation: locator('xpath=//span[contains(text(),\'Security Timesheet information saved successfully\')]') resolved to 2 elements:
1) (span _ngcontent-cks-c82="" class="text-bold color-whi…)Security Timesheet information saved successfully(/span) aka getByText('Security Timesheet information saved successfully').first()
2) (span _ngcontent-cks-c82="" class="text-bold color-whi…)Security Timesheet information saved successfully(/span) aka getByText('Security Timesheet information saved successfully').nth(1)
=========================== logs ===========================
waiting for locator('xpath=//span[contains(text(),\'Security Timesheet information saved successfully\')]')
============================================================
at SecuritySchedulePage.(anonymous) (C:\SOTA-AUTOMATION\src\pages\securitySchedule.page.ts:886:144)
at step (C:\SOTA-AUTOMATION\src\pages\securitySchedule.page.ts:33:23)
at Object.next (C:\SOTA-AUTOMATION\src\pages\securitySchedule.page.ts:14:53)
at fulfilled (C:\SOTA-AUTOMATION\src\pages\securitySchedule.page.ts:5:58)
Then
verify daily security schedule under sergeant user
Then
Verify labor Order page is opening under security management user
Then
user click on logout button
Then
Security manager user logged into the application
Then
Open the timesheet menu on security management user
Then
verify save without submit functionality
Then
verify submit functionality
Then
Verify remove approval functionality
Then
verify submit functionality
Then
verify approve functionality
Then
Verify reject functionality
Then
verify approve functionality